<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "log".
 *
 * @property integer $id
 * @property string $log2
 * @property string $url
 * @property string $book_id
 * @property integer $is_state
 * @property string $log
 * @property integer $create_time
 */
class Log extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['log2', 'log'], 'string'],
            [['is_state', 'create_time'], 'integer'],
            [['url'], 'string', 'max' => 100],
            [['book_id'], 'string', 'max' => 36],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'log2' => 'Log2',
            'url' => 'Url',
            'book_id' => 'Book ID',
            'is_state' => 'Is State',
            'log' => 'Log',
            'create_time' => 'Create Time',
        ];
    }
}
